#ifndef MESSAGERECEIVER_H
#define MESSAGERECEIVER_H

#include "TcpReceiver.h"
#include <QByteArray>

class MessageReceiver : public TcpReceiver
{
	Q_OBJECT
	public:
		MessageReceiver();

	protected:
		void OnInitialization();
		void OnReadStream(const char *s, int len);

	protected slots:
		void OnDisconnected();

	private:
		QByteArray _stream;

	signals:
		void sigStreamReceived(QByteArray stream);
};

#endif // MESSAGERECEIVER_H
